<?php
/**
 * Created by PhpStorm.
 * User: iwm
 * Date: 2017/2/8
 * Time: 15:07
 */

namespace app\home\model\page\shop;

use app\api\model\dao\GoodsCategory;
use app\library\Error;
use app\library\PageBase;


class GetCategoryList extends PageBase
{
    public function excute($param)
    {
        $ret = $this->checkToken($param);
        if (false === $ret) {
            return $this->getRes(Error::ERR_NO_AUTH);
        }

        $obj = new GoodsCategory();
        $data = $obj->where(['status' => '0'])->paginate(10);
        return $data;
    }
}